import Vue from "vue";
import VueRouter from "vue-router";
// import Home from "../views/Home.vue";
import Page from "../views/Page.vue";
import Member from "../views/Member.vue";
import Teleplay from "../views/Teleplay.vue";
import Film from "../views/Film.vue";
import Variety from "../views/Variety.vue";

Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    name: "Page",
    component: Page,
  },
  {
    path: "/member",
    name: "Member",
    component: Member,
  },
  {
    path: "/teleplay",
    name: "Teleplay",
    component: Teleplay,
  },
  {
    path: "/film",
    name: "Film",
    component: Film,
  },
  {
    path: "/variety",
    name: "Variety",
    component: Variety,
  },
  {
    path: "/about",
    name: "About",
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () =>
      import(/* webpackChunkName: "about" */ "../views/About.vue"),
  },
];

const router = new VueRouter({
  routes,
});

export default router;
